package uy.com.tsi2G7.superbet.event;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;
import javax.persistence.Table;

@Table(name="EVENT_MARKET")
@Entity
public class EventMarket {

	@Id 
	@Column(name="ID",length=50)
	private long marketId;
	@Column(name="EVENT",length=50)
	private long eventId;
	@Column(name="EVENT_TYPE",length=50)
	private long eventTypeId;
	@Column(name="NAME",length=255)
	private String name;
	@Column(name="START_DATE")
	private Date startDate;
	@Column(name="SOURCE_",length=50)
	@Enumerated(EnumType.STRING)
	private EventSource source;
	
	
	public Date getStartDate() {
		return startDate;
	}
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	public long getEventId() {
		return eventId;
	}
	public void setEventId(long eventId) {
		this.eventId = eventId;
	}
	public long getEventTypeId() {
		return eventTypeId;
	}
	public void setEventTypeId(long eventTypeId) {
		this.eventTypeId = eventTypeId;
	}
	public long getMarketId() {
		return marketId;
	}
	public void setMarketId(long marketId) {
		this.marketId = marketId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public EventSource getSource() {
		return source;
	}
	public void setSource(EventSource source) {
		this.source = source;
	}
	
	
	
}
